package org.hefan.hrm.client;

import org.hefan.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(value = "HRM-THIRDPARTY", fallbackFactory = ThirdPartyServiceClientFallBackFactory.class)
public interface ThirdPartyServiceClient {

    /**
     * 校验图片验证码
     */
    @PostMapping("/imageVerifyCode/verify")
    AjaxResult verifyImgCode(@RequestBody Map<String, String> params);

    /**
     * 校验短信验证码
     */
    @PostMapping("/smsVerifyCode/verify")
    AjaxResult verifySmsCode(@RequestBody Map<String, String> params);

    /**
     * 发送短信验证码
     */
    @PostMapping("/smsVerifyCode/sendVerifyCode")
    AjaxResult sendSmsVerifyCode(@RequestBody Map<String, String> params);
}
